package com.ys.homework;

/**
 * 描述: 妖怪类
 *
 * @author CodeYang
 * @version 2020/12/15 21:01
 */
public class Monster {

    private  String name;
    private double liveNum;
    private double attackNum;

    public Monster() {
    }

    public Monster(String name, double liveNum, double attackNum) {
        this.name = name;
        this.liveNum = liveNum;
        this.attackNum = attackNum;
    }

    /**
     *  攻击:
     */
    public void attackShow(){
        System.out.println("怪物"+name+"展开攻击");
        System.out.println("当前生命值为:"+liveNum);
        System.out.println("攻击力是: " + attackNum);
    }

    /**
     * 移动
     */
    public void move(){
        System.out.println("移动");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getLiveNum() {
        return liveNum;
    }

    public void setLiveNum(double liveNum) {
        this.liveNum = liveNum;
    }

    public double getAttackNum() {
        return attackNum;
    }

    public void setAttackNum(double attackNum) {
        this.attackNum = attackNum;
    }
}
